home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.dcom.modems
- Path: news.uunet.ca!gts!bokonon!stephen
- From: stephen@bokonon.ussinc.com (Stephen M. Dunn)
- Subject: Re: UART 16650
- Organization: United System Solutions Inc.
- Date: Sat, 2 Mar 1996 03:39:59 GMT
- Message-ID: <DnMFIn.2Gv@bokonon.ussinc.com>
- References: <4gf6b3$v5d@mips.pfalz.de> <4gkaj5$i5f@hg.oro.net> <DnAnB1.Mr@giskard.demon.co.uk>
-
- In article <DnAnB1.Mr@giskard.demon.co.uk> dale@giskard.demon.co.uk (Dale Shuttleworth) writes:
- $??? Large receive buffer sizes are primarily there to deal with
- $interrupt latency causing characters to to dropped. Since it is
- $impossible to drop characters on transmit you don't really need any
- $buffering at all.
-
- Large receive buffers can also reduce CPU load. An interrupt,
- in many cases, is relatively expensive in terms of CPU time (particularly
- in an OS which has to do a context switch in order to run an interrupt
- service routine). If you can move more than one character during
- that one call to the ISR, you're probably using CPU cycles more
- efficiently as well as reducing the chance of data loss due to
- high latency.
-
- And yes, you don't _need_ transmit buffers - but that certainly
- doesn't mean they can't be of benefit.
-
- $If you have a really loaded system doing polled transmission then I
- $suppose big transmit buffers are useful, otherwise they're a waste of
- $time. This is especially true since we usually transmit data to the
- $modem at far higher rates rather than it can actually send it.
-
- A really loaded system doing interrupt-drive transmission would
- also benefit, in the same case in which it benefits from
- receive buffers - if the interrupt latency may be so high that
- the interrupt can't be serviced quickly. Without buffers, the
- system would stop transmitting until such time as the ISR
- can stuff another character into the UART. If, on the other
- hand, I can load up the UART with a number of characters at once,
- I know they'll all transmit at full speed.
-
- The comment about CPU utilization also applies here.
- --
- stephen@bokonon.ussinc.com ...!{xrtll,gts.org}!bokonon!stephen
- ----------------------------------------------------------------------------
- Stephen M. Dunn, CNE, ACE, Sr. Systems Analyst, United System Solutions Inc.
- 104 Carnforth Road, Toronto, ON, Canada M4A 2K7 (416) 750-7946 x251
-